renderborder: Actually draw the path as one element
authorBenjamin Otte <otte@redhat.com>
Wed, 16 Dec 2015 04:15:04 +0000 (05:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 16 Dec 2015 04:15:04 +0000 (05:15 +0100)
Avoids spurious lines that can sometimes be seen going towards the
center of the widget.

gtk/gtkrenderborder.c

index 8271b227699fe998c7920fab869d2128fdb02671..213d65ef811d94a93affc21f7d1f2635239e72be 100644 (file)
@@ -499,9 +499,9 @@ render_frame_stroke (cairo_t       *cr,
       for (i = 0; i < 4; i++) 
         {
           length += _gtk_rounded_box_guess_length (&stroke_box, i);
-          _gtk_rounded_box_path_side (&stroke_box, cr, i);
         }
 
+      _gtk_rounded_box_path (&stroke_box, cr);
       gdk_cairo_set_source_rgba (cr, &colors[0]);
       set_stroke_style (cr, border_width[0], stroke_style, length);
       cairo_stroke (cr);